home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 April: Mac OS SDK / Dev.CD Apr 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / Notification.p < prev    next >
Encoding:
Text File  |  1998-02-12  |  2.4 KB  |  102 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Notification.p
  3.  
  4.      Contains:    Notification Manager interfaces
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.1
  8.  
  9.      Copyright:    © 1989-1998 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT Notification;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __NOTIFICATION__}
  28. {$SETC __NOTIFICATION__ := 1}
  29.  
  30. {$I+}
  31. {$SETC NotificationIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34. {$IFC UNDEFINED __MACTYPES__}
  35. {$I MacTypes.p}
  36. {$ENDC}
  37. {$IFC UNDEFINED __OSUTILS__}
  38. {$I OSUtils.p}
  39. {$ENDC}
  40.  
  41.  
  42. {$PUSH}
  43. {$ALIGN MAC68K}
  44. {$LibExport+}
  45.  
  46.  
  47. TYPE
  48.     NMRecPtr = ^NMRec;
  49. {$IFC TYPED_FUNCTION_POINTERS}
  50.     NMProcPtr = PROCEDURE(nmReqPtr: NMRecPtr);
  51. {$ELSEC}
  52.     NMProcPtr = ProcPtr;
  53. {$ENDC}
  54.  
  55.     NMUPP = UniversalProcPtr;
  56.     NMRec = RECORD
  57.         qLink:                    QElemPtr;                                {  next queue entry }
  58.         qType:                    INTEGER;                                {  queue type -- ORD(nmType) = 8 }
  59.         nmFlags:                INTEGER;                                {  reserved }
  60.         nmPrivate:                LONGINT;                                {  reserved }
  61.         nmReserved:                INTEGER;                                {  reserved }
  62.         nmMark:                    INTEGER;                                {  item to mark in Apple menu }
  63.         nmIcon:                    Handle;                                    {  handle to small icon }
  64.         nmSound:                Handle;                                    {  handle to sound record }
  65.         nmStr:                    StringPtr;                                {  string to appear in alert }
  66.         nmResp:                    NMUPP;                                    {  pointer to response routine }
  67.         nmRefCon:                LONGINT;                                {  for application use }
  68.     END;
  69.  
  70.  
  71. CONST
  72.     uppNMProcInfo = $000000C0;
  73.  
  74. PROCEDURE CallNMProc(nmReqPtr: NMRecPtr; userRoutine: NMUPP);
  75.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  76.     INLINE $205F, $4E90;
  77.     {$ENDC}
  78.  
  79. FUNCTION NewNMProc(userRoutine: NMProcPtr): NMUPP;
  80.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  81.     INLINE $2E9F;
  82.     {$ENDC}
  83. FUNCTION NMInstall(nmReqPtr: NMRecPtr): OSErr;
  84.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  85.     INLINE $205F, $A05E, $3E80;
  86.     {$ENDC}
  87. FUNCTION NMRemove(nmReqPtr: NMRecPtr): OSErr;
  88.     {$IFC TARGET_OS_MAC AND TARGET_CPU_68K AND NOT TARGET_RT_MAC_CFM}
  89.     INLINE $205F, $A05F, $3E80;
  90.     {$ENDC}
  91.  
  92. {$ALIGN RESET}
  93. {$POP}
  94.  
  95. {$SETC UsingIncludes := NotificationIncludes}
  96.  
  97. {$ENDC} {__NOTIFICATION__}
  98.  
  99. {$IFC NOT UsingIncludes}
  100.  END.
  101. {$ENDC}
  102.